/**
 * @file SubMarginSensor.h
 * @author 
 * @brief 订阅沿边传感器topic数据
 * @version 1.0
 * @date 2020-08-18
 * 
 * @copyright Copyright (c) 2020
 * 
 */

#pragma once
#include <memory>
#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/float32.hpp"
#include "sensor_msgs/msg/range.hpp"


namespace behavior_controller
{
    namespace SubMarginSensor
    {
        void SubMarginSensorInfo(rclcpp::Node::SharedPtr &node_handle);
        //void sub_callback(const std_msgs::msg::Float32::SharedPtr msg);
        void sub_callback(const sensor_msgs::msg::Range::SharedPtr msg);
    }; // namespace SubMarginSensor
} // namespace behavior_controller